﻿// Models/ReportContent.cs
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace FuturesReportViewer.Models
{
    // 使用 .NET 8 的新特性 [PrimaryKey] 来定义复合主键
    [Table("openai_content2")]
    [PrimaryKey(nameof(Date), nameof(Pzdm))]
    public class ReportContent
    {
        [Column("date")]
        public required string Date { get; set; }

        [Column("pzdm")]
        public required string Pzdm { get; set; }

        [Column("name")]
        public string? Name { get; set; }

        [Column("content")]
        public string? Content { get; set; }
    }
}